{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport { TinyColor } from '@ctrl/tinycolor';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { genFocusStyle, resetComponent } from '../../style';\nvar genSwitchSmallStyle = function genSwitchSmallStyle(token) {\n  var _$concat, _$concat2, _$concat3, _not$concat, _$concat4;\n  var componentCls = token.componentCls;\n  var switchInnerCls = \"\".concat(componentCls, \"-inner\");\n  return _defineProperty({}, componentCls, _defineProperty({}, \"&\".concat(componentCls, \"-small\"), (_$concat4 = {\n    minWidth: token.switchMinWidthSM,\n    height: token.switchHeightSM,\n    lineHeight: \"\".concat(token.switchHeightSM, \"px\")\n  }, _defineProperty(_$concat4, \"\".concat(componentCls, \"-inner\"), (_$concat = {}, _defineProperty(_$concat, \"\".concat(switchInnerCls, \"-checked\"), {\n    marginInlineStart: \"calc(\".concat(token.switchInnerMarginMinSM, \"px - 100% + \").concat(token.switchPinSizeSM + token.switchPadding * 2, \"px)\"),\n    marginInlineEnd: \"calc(\".concat(token.switchInnerMarginMaxSM, \"px + 100% - \").concat(token.switchPinSizeSM + token.switchPadding * 2, \"px)\")\n  }), _defineProperty(_$concat, \"\".concat(switchInnerCls, \"-unchecked\"), {\n    marginTop: -token.switchHeightSM,\n    marginInlineStart: token.switchInnerMarginMaxSM,\n    marginInlineEnd: token.switchInnerMarginMinSM\n  }), _$concat)), _defineProperty(_$concat4, \"\".concat(componentCls, \"-handle\"), {\n    width: token.switchPinSizeSM,\n    height: token.switchPinSizeSM\n  }), _defineProperty(_$concat4, \"\".concat(componentCls, \"-loading-icon\"), {\n    top: (token.switchPinSizeSM - token.switchLoadingIconSize) / 2,\n    fontSize: token.switchLoadingIconSize\n  }), _defineProperty(_$concat4, \"&\".concat(componentCls, \"-checked\"), (_$concat3 = {}, _defineProperty(_$concat3, \"\".concat(componentCls, \"-inner\"), (_$concat2 = {}, _defineProperty(_$concat2, \"\".concat(switchInnerCls, \"-checked\"), {\n    marginInlineStart: token.switchInnerMarginMinSM,\n    marginInlineEnd: token.switchInnerMarginMaxSM\n  }), _defineProperty(_$concat2, \"\".concat(switchInnerCls, \"-unchecked\"), {\n    marginInlineStart: \"calc(\".concat(token.switchInnerMarginMaxSM, \"px + 100% - \").concat(token.switchPinSizeSM + token.switchPadding * 2, \"px)\"),\n    marginInlineEnd: \"calc(\".concat(token.switchInnerMarginMinSM, \"px - 100% + \").concat(token.switchPinSizeSM + token.switchPadding * 2, \"px)\")\n  }), _$concat2)), _defineProperty(_$concat3, \"\".concat(componentCls, \"-handle\"), {\n    insetInlineStart: \"calc(100% - \".concat(token.switchPinSizeSM + token.switchPadding, \"px)\")\n  }), _$concat3)), _defineProperty(_$concat4, \"&:not(\".concat(componentCls, \"-disabled):active\"), (_not$concat = {}, _defineProperty(_not$concat, \"&:not(\".concat(componentCls, \"-checked) \").concat(switchInnerCls), _defineProperty({}, \"\".concat(switchInnerCls, \"-unchecked\"), {\n    marginInlineStart: token.switchInnerMarginMaxSM + token.marginXXS / 2,\n    marginInlineEnd: token.switchInnerMarginMinSM - token.marginXXS / 2\n  })), _defineProperty(_not$concat, \"&\".concat(componentCls, \"-checked \").concat(switchInnerCls), _defineProperty({}, \"\".concat(switchInnerCls, \"-checked\"), {\n    marginInlineStart: token.switchInnerMarginMinSM - token.marginXXS / 2,\n    marginInlineEnd: token.switchInnerMarginMaxSM + token.marginXXS / 2\n  })), _not$concat)), _$concat4)));\n};\nvar genSwitchLoadingStyle = function genSwitchLoadingStyle(token) {\n  var _componentCls2;\n  var componentCls = token.componentCls;\n  return _defineProperty({}, componentCls, (_componentCls2 = {}, _defineProperty(_componentCls2, \"\".concat(componentCls, \"-loading-icon\").concat(token.iconCls), {\n    position: 'relative',\n    top: (token.switchPinSize - token.fontSize) / 2,\n    color: token.switchLoadingIconColor,\n    verticalAlign: 'top'\n  }), _defineProperty(_componentCls2, \"&\".concat(componentCls, \"-checked \").concat(componentCls, \"-loading-icon\"), {\n    color: token.switchColor\n  }), _componentCls2));\n};\nvar genSwitchHandleStyle = function genSwitchHandleStyle(token) {\n  var _not$concat2, _componentCls3;\n  var componentCls = token.componentCls;\n  var switchHandleCls = \"\".concat(componentCls, \"-handle\");\n  return _defineProperty({}, componentCls, (_componentCls3 = {}, _defineProperty(_componentCls3, switchHandleCls, {\n    position: 'absolute',\n    top: token.switchPadding,\n    insetInlineStart: token.switchPadding,\n    width: token.switchPinSize,\n    height: token.switchPinSize,\n    transition: \"all \".concat(token.switchDuration, \" ease-in-out\"),\n    '&::before': {\n      position: 'absolute',\n      top: 0,\n      insetInlineEnd: 0,\n      bottom: 0,\n      insetInlineStart: 0,\n      backgroundColor: token.colorWhite,\n      borderRadius: token.switchPinSize / 2,\n      boxShadow: token.switchHandleShadow,\n      transition: \"all \".concat(token.switchDuration, \" ease-in-out\"),\n      content: '\"\"'\n    }\n  }), _defineProperty(_componentCls3, \"&\".concat(componentCls, \"-checked \").concat(switchHandleCls), {\n    insetInlineStart: \"calc(100% - \".concat(token.switchPinSize + token.switchPadding, \"px)\")\n  }), _defineProperty(_componentCls3, \"&:not(\".concat(componentCls, \"-disabled):active\"), (_not$concat2 = {}, _defineProperty(_not$concat2, \"\".concat(switchHandleCls, \"::before\"), {\n    insetInlineEnd: token.switchHandleActiveInset,\n    insetInlineStart: 0\n  }), _defineProperty(_not$concat2, \"&\".concat(componentCls, \"-checked \").concat(switchHandleCls, \"::before\"), {\n    insetInlineEnd: 0,\n    insetInlineStart: token.switchHandleActiveInset\n  }), _not$concat2)), _componentCls3));\n};\nvar genSwitchInnerStyle = function genSwitchInnerStyle(token) {\n  var _switchInnerCls, _$concat$concat2, _not$concat3, _componentCls4;\n  var componentCls = token.componentCls;\n  var switchInnerCls = \"\".concat(componentCls, \"-inner\");\n  return _defineProperty({}, componentCls, (_componentCls4 = {}, _defineProperty(_componentCls4, switchInnerCls, (_switchInnerCls = {\n    display: 'block',\n    overflow: 'hidden',\n    borderRadius: 100,\n    height: '100%'\n  }, _defineProperty(_switchInnerCls, \"\".concat(switchInnerCls, \"-checked, \").concat(switchInnerCls, \"-unchecked\"), {\n    display: 'block',\n    color: token.colorTextLightSolid,\n    fontSize: token.fontSizeSM,\n    transition: \"margin-inline-start \".concat(token.switchDuration, \" ease-in-out, margin-inline-end \").concat(token.switchDuration, \" ease-in-out\"),\n    pointerEvents: 'none'\n  }), _defineProperty(_switchInnerCls, \"\".concat(switchInnerCls, \"-checked\"), {\n    marginInlineStart: \"calc(\".concat(token.switchInnerMarginMin, \"px - 100% + \").concat(token.switchPinSize + token.switchPadding * 2, \"px)\"),\n    marginInlineEnd: \"calc(\".concat(token.switchInnerMarginMax, \"px + 100% - \").concat(token.switchPinSize + token.switchPadding * 2, \"px)\")\n  }), _defineProperty(_switchInnerCls, \"\".concat(switchInnerCls, \"-unchecked\"), {\n    marginTop: -token.switchHeight,\n    marginInlineStart: token.switchInnerMarginMax,\n    marginInlineEnd: token.switchInnerMarginMin\n  }), _switchInnerCls)), _defineProperty(_componentCls4, \"&\".concat(componentCls, \"-checked \").concat(switchInnerCls), (_$concat$concat2 = {}, _defineProperty(_$concat$concat2, \"\".concat(switchInnerCls, \"-checked\"), {\n    marginInlineStart: token.switchInnerMarginMin,\n    marginInlineEnd: token.switchInnerMarginMax\n  }), _defineProperty(_$concat$concat2, \"\".concat(switchInnerCls, \"-unchecked\"), {\n    marginInlineStart: \"calc(\".concat(token.switchInnerMarginMax, \"px + 100% - \").concat(token.switchPinSize + token.switchPadding * 2, \"px)\"),\n    marginInlineEnd: \"calc(\".concat(token.switchInnerMarginMin, \"px - 100% + \").concat(token.switchPinSize + token.switchPadding * 2, \"px)\")\n  }), _$concat$concat2)), _defineProperty(_componentCls4, \"&:not(\".concat(componentCls, \"-disabled):active\"), (_not$concat3 = {}, _defineProperty(_not$concat3, \"&:not(\".concat(componentCls, \"-checked) \").concat(switchInnerCls), _defineProperty({}, \"\".concat(switchInnerCls, \"-unchecked\"), {\n    marginInlineStart: token.switchInnerMarginMax + token.switchPadding * 2,\n    marginInlineEnd: token.switchInnerMarginMin - token.switchPadding * 2\n  })), _defineProperty(_not$concat3, \"&\".concat(componentCls, \"-checked \").concat(switchInnerCls), _defineProperty({}, \"\".concat(switchInnerCls, \"-checked\"), {\n    marginInlineStart: token.switchInnerMarginMin - token.switchPadding * 2,\n    marginInlineEnd: token.switchInnerMarginMax + token.switchPadding * 2\n  })), _not$concat3)), _componentCls4));\n};\nvar genSwitchStyle = function genSwitchStyle(token) {\n  var _Object$assign2;\n  var componentCls = token.componentCls;\n  return _defineProperty({}, componentCls, Object.assign(Object.assign(Object.assign(Object.assign({}, resetComponent(token)), _defineProperty({\n    position: 'relative',\n    display: 'inline-block',\n    boxSizing: 'border-box',\n    minWidth: token.switchMinWidth,\n    height: token.switchHeight,\n    lineHeight: \"\".concat(token.switchHeight, \"px\"),\n    verticalAlign: 'middle',\n    background: token.colorTextQuaternary,\n    border: '0',\n    borderRadius: 100,\n    cursor: 'pointer',\n    transition: \"all \".concat(token.motionDurationMid),\n    userSelect: 'none'\n  }, \"&:hover:not(\".concat(componentCls, \"-disabled)\"), {\n    background: token.colorTextTertiary\n  })), genFocusStyle(token)), (_Object$assign2 = {}, _defineProperty(_Object$assign2, \"&\".concat(componentCls, \"-checked\"), _defineProperty({\n    background: token.switchColor\n  }, \"&:hover:not(\".concat(componentCls, \"-disabled)\"), {\n    background: token.colorPrimaryHover\n  })), _defineProperty(_Object$assign2, \"&\".concat(componentCls, \"-loading, &\").concat(componentCls, \"-disabled\"), {\n    cursor: 'not-allowed',\n    opacity: token.switchDisabledOpacity,\n    '*': {\n      boxShadow: 'none',\n      cursor: 'not-allowed'\n    }\n  }), _defineProperty(_Object$assign2, \"&\".concat(componentCls, \"-rtl\"), {\n    direction: 'rtl'\n  }), _Object$assign2)));\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Switch', function (token) {\n  var switchHeight = token.fontSize * token.lineHeight;\n  var switchHeightSM = token.controlHeight / 2;\n  var switchPadding = 2; // This is magic\n  var switchPinSize = switchHeight - switchPadding * 2;\n  var switchPinSizeSM = switchHeightSM - switchPadding * 2;\n  var switchToken = mergeToken(token, {\n    switchMinWidth: switchPinSize * 2 + switchPadding * 4,\n    switchHeight: switchHeight,\n    switchDuration: token.motionDurationMid,\n    switchColor: token.colorPrimary,\n    switchDisabledOpacity: token.opacityLoading,\n    switchInnerMarginMin: switchPinSize / 2,\n    switchInnerMarginMax: switchPinSize + switchPadding + switchPadding * 2,\n    switchPadding: switchPadding,\n    switchPinSize: switchPinSize,\n    switchBg: token.colorBgContainer,\n    switchMinWidthSM: switchPinSizeSM * 2 + switchPadding * 2,\n    switchHeightSM: switchHeightSM,\n    switchInnerMarginMinSM: switchPinSizeSM / 2,\n    switchInnerMarginMaxSM: switchPinSizeSM + switchPadding + switchPadding * 2,\n    switchPinSizeSM: switchPinSizeSM,\n    switchHandleShadow: \"0 2px 4px 0 \".concat(new TinyColor('#00230b').setAlpha(0.2).toRgbString()),\n    switchLoadingIconSize: token.fontSizeIcon * 0.75,\n    switchLoadingIconColor: \"rgba(0, 0, 0, \".concat(token.opacityLoading, \")\"),\n    switchHandleActiveInset: '-30%'\n  });\n  return [genSwitchStyle(switchToken),\n  // inner style\n  genSwitchInnerStyle(switchToken),\n  // handle style\n  genSwitchHandleStyle(switchToken),\n  // loading style\n  genSwitchLoadingStyle(switchToken),\n  // small style\n  genSwitchSmallStyle(switchToken)];\n});","map":{"version":3,"names":["TinyColor","genComponentStyleHook","mergeToken","genFocusStyle","resetComponent","genSwitchSmallStyle","token","componentCls","switchInnerCls","minWidth","switchMinWidthSM","height","switchHeightSM","lineHeight","marginInlineStart","switchInnerMarginMinSM","switchPinSizeSM","switchPadding","marginInlineEnd","switchInnerMarginMaxSM","marginTop","width","top","switchLoadingIconSize","fontSize","insetInlineStart","marginXXS","genSwitchLoadingStyle","iconCls","position","switchPinSize","color","switchLoadingIconColor","verticalAlign","switchColor","genSwitchHandleStyle","switchHandleCls","transition","switchDuration","insetInlineEnd","bottom","backgroundColor","colorWhite","borderRadius","boxShadow","switchHandleShadow","content","switchHandleActiveInset","genSwitchInnerStyle","display","overflow","colorTextLightSolid","fontSizeSM","pointerEvents","switchInnerMarginMin","switchInnerMarginMax","switchHeight","genSwitchStyle","Object","assign","boxSizing","switchMinWidth","background","colorTextQuaternary","border","cursor","motionDurationMid","userSelect","colorTextTertiary","colorPrimaryHover","opacity","switchDisabledOpacity","direction","controlHeight","switchToken","colorPrimary","opacityLoading","switchBg","colorBgContainer","setAlpha","toRgbString","fontSizeIcon"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/switch/style/index.js"],"sourcesContent":["import { TinyColor } from '@ctrl/tinycolor';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { genFocusStyle, resetComponent } from '../../style';\nconst genSwitchSmallStyle = token => {\n  const {\n    componentCls\n  } = token;\n  const switchInnerCls = `${componentCls}-inner`;\n  return {\n    [componentCls]: {\n      [`&${componentCls}-small`]: {\n        minWidth: token.switchMinWidthSM,\n        height: token.switchHeightSM,\n        lineHeight: `${token.switchHeightSM}px`,\n        [`${componentCls}-inner`]: {\n          [`${switchInnerCls}-checked`]: {\n            marginInlineStart: `calc(${token.switchInnerMarginMinSM}px - 100% + ${token.switchPinSizeSM + token.switchPadding * 2}px)`,\n            marginInlineEnd: `calc(${token.switchInnerMarginMaxSM}px + 100% - ${token.switchPinSizeSM + token.switchPadding * 2}px)`\n          },\n          [`${switchInnerCls}-unchecked`]: {\n            marginTop: -token.switchHeightSM,\n            marginInlineStart: token.switchInnerMarginMaxSM,\n            marginInlineEnd: token.switchInnerMarginMinSM\n          }\n        },\n        [`${componentCls}-handle`]: {\n          width: token.switchPinSizeSM,\n          height: token.switchPinSizeSM\n        },\n        [`${componentCls}-loading-icon`]: {\n          top: (token.switchPinSizeSM - token.switchLoadingIconSize) / 2,\n          fontSize: token.switchLoadingIconSize\n        },\n        [`&${componentCls}-checked`]: {\n          [`${componentCls}-inner`]: {\n            [`${switchInnerCls}-checked`]: {\n              marginInlineStart: token.switchInnerMarginMinSM,\n              marginInlineEnd: token.switchInnerMarginMaxSM\n            },\n            [`${switchInnerCls}-unchecked`]: {\n              marginInlineStart: `calc(${token.switchInnerMarginMaxSM}px + 100% - ${token.switchPinSizeSM + token.switchPadding * 2}px)`,\n              marginInlineEnd: `calc(${token.switchInnerMarginMinSM}px - 100% + ${token.switchPinSizeSM + token.switchPadding * 2}px)`\n            }\n          },\n          [`${componentCls}-handle`]: {\n            insetInlineStart: `calc(100% - ${token.switchPinSizeSM + token.switchPadding}px)`\n          }\n        },\n        [`&:not(${componentCls}-disabled):active`]: {\n          [`&:not(${componentCls}-checked) ${switchInnerCls}`]: {\n            [`${switchInnerCls}-unchecked`]: {\n              marginInlineStart: token.switchInnerMarginMaxSM + token.marginXXS / 2,\n              marginInlineEnd: token.switchInnerMarginMinSM - token.marginXXS / 2\n            }\n          },\n          [`&${componentCls}-checked ${switchInnerCls}`]: {\n            [`${switchInnerCls}-checked`]: {\n              marginInlineStart: token.switchInnerMarginMinSM - token.marginXXS / 2,\n              marginInlineEnd: token.switchInnerMarginMaxSM + token.marginXXS / 2\n            }\n          }\n        }\n      }\n    }\n  };\n};\nconst genSwitchLoadingStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [componentCls]: {\n      [`${componentCls}-loading-icon${token.iconCls}`]: {\n        position: 'relative',\n        top: (token.switchPinSize - token.fontSize) / 2,\n        color: token.switchLoadingIconColor,\n        verticalAlign: 'top'\n      },\n      [`&${componentCls}-checked ${componentCls}-loading-icon`]: {\n        color: token.switchColor\n      }\n    }\n  };\n};\nconst genSwitchHandleStyle = token => {\n  const {\n    componentCls\n  } = token;\n  const switchHandleCls = `${componentCls}-handle`;\n  return {\n    [componentCls]: {\n      [switchHandleCls]: {\n        position: 'absolute',\n        top: token.switchPadding,\n        insetInlineStart: token.switchPadding,\n        width: token.switchPinSize,\n        height: token.switchPinSize,\n        transition: `all ${token.switchDuration} ease-in-out`,\n        '&::before': {\n          position: 'absolute',\n          top: 0,\n          insetInlineEnd: 0,\n          bottom: 0,\n          insetInlineStart: 0,\n          backgroundColor: token.colorWhite,\n          borderRadius: token.switchPinSize / 2,\n          boxShadow: token.switchHandleShadow,\n          transition: `all ${token.switchDuration} ease-in-out`,\n          content: '\"\"'\n        }\n      },\n      [`&${componentCls}-checked ${switchHandleCls}`]: {\n        insetInlineStart: `calc(100% - ${token.switchPinSize + token.switchPadding}px)`\n      },\n      [`&:not(${componentCls}-disabled):active`]: {\n        [`${switchHandleCls}::before`]: {\n          insetInlineEnd: token.switchHandleActiveInset,\n          insetInlineStart: 0\n        },\n        [`&${componentCls}-checked ${switchHandleCls}::before`]: {\n          insetInlineEnd: 0,\n          insetInlineStart: token.switchHandleActiveInset\n        }\n      }\n    }\n  };\n};\nconst genSwitchInnerStyle = token => {\n  const {\n    componentCls\n  } = token;\n  const switchInnerCls = `${componentCls}-inner`;\n  return {\n    [componentCls]: {\n      [switchInnerCls]: {\n        display: 'block',\n        overflow: 'hidden',\n        borderRadius: 100,\n        height: '100%',\n        [`${switchInnerCls}-checked, ${switchInnerCls}-unchecked`]: {\n          display: 'block',\n          color: token.colorTextLightSolid,\n          fontSize: token.fontSizeSM,\n          transition: `margin-inline-start ${token.switchDuration} ease-in-out, margin-inline-end ${token.switchDuration} ease-in-out`,\n          pointerEvents: 'none'\n        },\n        [`${switchInnerCls}-checked`]: {\n          marginInlineStart: `calc(${token.switchInnerMarginMin}px - 100% + ${token.switchPinSize + token.switchPadding * 2}px)`,\n          marginInlineEnd: `calc(${token.switchInnerMarginMax}px + 100% - ${token.switchPinSize + token.switchPadding * 2}px)`\n        },\n        [`${switchInnerCls}-unchecked`]: {\n          marginTop: -token.switchHeight,\n          marginInlineStart: token.switchInnerMarginMax,\n          marginInlineEnd: token.switchInnerMarginMin\n        }\n      },\n      [`&${componentCls}-checked ${switchInnerCls}`]: {\n        [`${switchInnerCls}-checked`]: {\n          marginInlineStart: token.switchInnerMarginMin,\n          marginInlineEnd: token.switchInnerMarginMax\n        },\n        [`${switchInnerCls}-unchecked`]: {\n          marginInlineStart: `calc(${token.switchInnerMarginMax}px + 100% - ${token.switchPinSize + token.switchPadding * 2}px)`,\n          marginInlineEnd: `calc(${token.switchInnerMarginMin}px - 100% + ${token.switchPinSize + token.switchPadding * 2}px)`\n        }\n      },\n      [`&:not(${componentCls}-disabled):active`]: {\n        [`&:not(${componentCls}-checked) ${switchInnerCls}`]: {\n          [`${switchInnerCls}-unchecked`]: {\n            marginInlineStart: token.switchInnerMarginMax + token.switchPadding * 2,\n            marginInlineEnd: token.switchInnerMarginMin - token.switchPadding * 2\n          }\n        },\n        [`&${componentCls}-checked ${switchInnerCls}`]: {\n          [`${switchInnerCls}-checked`]: {\n            marginInlineStart: token.switchInnerMarginMin - token.switchPadding * 2,\n            marginInlineEnd: token.switchInnerMarginMax + token.switchPadding * 2\n          }\n        }\n      }\n    }\n  };\n};\nconst genSwitchStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign({}, resetComponent(token)), {\n      position: 'relative',\n      display: 'inline-block',\n      boxSizing: 'border-box',\n      minWidth: token.switchMinWidth,\n      height: token.switchHeight,\n      lineHeight: `${token.switchHeight}px`,\n      verticalAlign: 'middle',\n      background: token.colorTextQuaternary,\n      border: '0',\n      borderRadius: 100,\n      cursor: 'pointer',\n      transition: `all ${token.motionDurationMid}`,\n      userSelect: 'none',\n      [`&:hover:not(${componentCls}-disabled)`]: {\n        background: token.colorTextTertiary\n      }\n    }), genFocusStyle(token)), {\n      [`&${componentCls}-checked`]: {\n        background: token.switchColor,\n        [`&:hover:not(${componentCls}-disabled)`]: {\n          background: token.colorPrimaryHover\n        }\n      },\n      [`&${componentCls}-loading, &${componentCls}-disabled`]: {\n        cursor: 'not-allowed',\n        opacity: token.switchDisabledOpacity,\n        '*': {\n          boxShadow: 'none',\n          cursor: 'not-allowed'\n        }\n      },\n      // rtl style\n      [`&${componentCls}-rtl`]: {\n        direction: 'rtl'\n      }\n    })\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Switch', token => {\n  const switchHeight = token.fontSize * token.lineHeight;\n  const switchHeightSM = token.controlHeight / 2;\n  const switchPadding = 2; // This is magic\n  const switchPinSize = switchHeight - switchPadding * 2;\n  const switchPinSizeSM = switchHeightSM - switchPadding * 2;\n  const switchToken = mergeToken(token, {\n    switchMinWidth: switchPinSize * 2 + switchPadding * 4,\n    switchHeight,\n    switchDuration: token.motionDurationMid,\n    switchColor: token.colorPrimary,\n    switchDisabledOpacity: token.opacityLoading,\n    switchInnerMarginMin: switchPinSize / 2,\n    switchInnerMarginMax: switchPinSize + switchPadding + switchPadding * 2,\n    switchPadding,\n    switchPinSize,\n    switchBg: token.colorBgContainer,\n    switchMinWidthSM: switchPinSizeSM * 2 + switchPadding * 2,\n    switchHeightSM,\n    switchInnerMarginMinSM: switchPinSizeSM / 2,\n    switchInnerMarginMaxSM: switchPinSizeSM + switchPadding + switchPadding * 2,\n    switchPinSizeSM,\n    switchHandleShadow: `0 2px 4px 0 ${new TinyColor('#00230b').setAlpha(0.2).toRgbString()}`,\n    switchLoadingIconSize: token.fontSizeIcon * 0.75,\n    switchLoadingIconColor: `rgba(0, 0, 0, ${token.opacityLoading})`,\n    switchHandleActiveInset: '-30%'\n  });\n  return [genSwitchStyle(switchToken),\n  // inner style\n  genSwitchInnerStyle(switchToken),\n  // handle style\n  genSwitchHandleStyle(switchToken),\n  // loading style\n  genSwitchLoadingStyle(switchToken),\n  // small style\n  genSwitchSmallStyle(switchToken)];\n});"],"mappings":";AAAA,SAASA,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,SAASC,aAAa,EAAEC,cAAc,QAAQ,aAAa;AAC3D,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmB,CAAGC,K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